home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr05
/
v12n13.zip
/
FIND.ZIP
/
FINSRC.ZIP
/
MAKELIB.MSC
< prev
Wrap
Text File
|
1993-05-02
|
3KB
|
89 lines
#==========================================================
# Makefile for Win DLLs under Microsoft C 6.0
# Copyright (c) 1993 Douglas Boling
#==========================================================
#----------------------------------------------------------
# Target filename
#----------------------------------------------------------
NAME = find
#----------------------------------------------------------
# Define DEBUG = 1 to add debug info to EXE
#----------------------------------------------------------
DEBUG = 0
#----------------------------------------------------------
# Define MYWIN31 = 1 for Windows 3.1 apps
#----------------------------------------------------------
MYWIN31 = 1
#----------------------------------------------------------
# C compiler switches
#
# -c Compile, no link
# -ASw Small model, SS != DS
# -Gsw No Stack check, Compile for Windows
# -Ow Optimize. Assume no aliases
# -W3 Print warnings to level 3
# -G2 Enable 286 opcodes (for Win 3.1)
# -Zp Pack Structures or...
# -Zpi If Debug info needed
# -Od Disable Optimization
#----------------------------------------------------------
!if $(DEBUG)
CSWITCH = -c -ASw -Gsw -Ow -W3 -Zpi -Od
!else
CSWITCH = -c -ASw -Gsw -Ow -W3 -Zp
!endif
!if $(MYWIN31)
CSWITCH = $(CSWITCH) -G2
!endif
#----------------------------------------------------------
# Link Switches
#
# /Align:16 Align segments on 16 byte boundries
# /CO If debug info needed
#----------------------------------------------------------
!if $(DEBUG)
LSWITCH = /CO /align:16
!else
LSWITCH = /align:16
!endif
#----------------------------------------------------------
# Lib files
#
# /nod No defaults
# sdllcew Small model lib for Windows DLLs
# libw Windows API lib
# commdlg (not used) Windows Common Dialog Box lib
# mmsystem (not used) Windows multimedia lib
#----------------------------------------------------------
LIBS = /nod sdllcew libw
#----------------------------------------------------------
# Resource Compiler switches
# 30 Require at least Win 3.0
# 31 Require at least Win 3.1
#----------------------------------------------------------
!if $(MYWIN31)
RCSWITCH = -31
!else
RCSWITCH = -30
!endif
#----------------------------------------------------------
# Make DLL
#----------------------------------------------------------
$(NAME).dll : $(NAME).obj $(NAME).def $(NAME).res
link $(LSWITCH) $(NAME) libentry, $(NAME).dll, NUL, $(LIBS), $(NAME)
rc $(RCSWITCH) $(NAME).res $(NAME).dll
$(NAME).obj : $(NAME).c $(NAME).h
cl $(CSWITCH) $(NAME).c
$(NAME).res : $(NAME).rc $(NAME).h $(NAME).ico
rc -r $(NAME).rc